const state = {
     isCollapsed: false,
     selectedMenu: [],
}
const mutations = {
      collapseMenu(state) {
          state.isCollapsed = !state.isCollapsed;
      },
      addMenu(state,playload){
          if (!state.selectedMenu.some(item => item.path === playload.path)) {
              state.selectedMenu.push(playload);
          }
      }
}

export default {
     state,
     mutations,
}